﻿@using ForzaGT3.Data
@model News
@{
    ViewBag.Title = "Details";
    string lang = string.Empty;
    if (!string.IsNullOrEmpty(Request.QueryString["lang"]))
    {
        lang = Request.QueryString["lang"];
    }
}

<div class="contentheader header shadow">
    @if(!string.IsNullOrEmpty(lang) && lang == "en")
    {
        if (!string.IsNullOrEmpty(Model.NewsTitleEng))
        {
            @Model.NewsTitleEng
        }
    }
    else
    {
        if (!string.IsNullOrEmpty(Model.NewsTitle))
        {
            @Model.NewsTitle
        }
    }
</div>
<div class="greybgtxt">
   <img src="@Url.Content("~" + Model.ImageUrl)" alt="@Model.NewsTitle" />
    @if (!string.IsNullOrEmpty(lang) && lang == "en")
    {
        @MvcHtmlString.Create(Model.NewsContentEng)
    }
    else
    {
        @MvcHtmlString.Create(Model.NewsContent)
    }
</div>
